package com.its.us.web.utils;

/**
 * @className ConstantsUtil
 * @author huguangjun
 * @date 2020/12/3
 * @desc 9:09
 */
public class ConstantsUtil {

    /**
     * token name
     */
    public static class Token {
        // tokenName
        public static final String TOKEN_NAME = "tokenAz";
        // expires time 七天
        public static final int DATE = 3;
    }

    /**
     * 前台登录的参数
     */
    public static class UserParam {
        public static final String USER_NAME = "username";
        public static final String PASS_WORD = "password";
    }

    public static class HttpStatus {
        public static final String NOT_FOUND = "404";
        public static final String FORBIDDE = "403";
        public static final String UNSUPPORTED = "415";
    }

    /**
     * 按钮权限
     */
    public static class Button{
        public static final String BUTTON_PERMISSION = "perm";
    }

    /**
     * 系统常量
     */
    public static class System{
        public static final String ROLE_NAME = "admin";
        public static final String AUTH_NULL = "-1";
    }
}
